#!/bin/bash

echo "Downloading new users..."

ftp -in <<THEEND
open bayhawks.dreamhost.com
user grabillinois Gr@b@B1ke
get new_users.gz
bye
THEEND

echo "Inserting new users into new user DB..."
zcat new_users.gz | sqlite3 user.db 
rm -f new_users.gz

echo "Showing all the users, just so you know who all the new users are"
sqlite3 user.db "select * from users;"
